/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package attackDetection;
import attackDetection2.Packet;
import java.util.ArrayList;
import java.util.Map;

/**
 *
 * @author john
 */
public class Message {
    private int messageId;
    private int sourceNodeId;
    private int destinationNodeId;
    private int timeToLive;

    private ArrayList packetList;
    private ArrayList drops;
    private Map packetSeq;

    public Message(Packet pack)
    {
        messageId = pack.getMessageId();

    }
    
    public Message(Packet pack, int ttl)
    {
        timeToLive = ttl;
        messageId = pack.getMessageId();
    }

    public void add(Packet pack)
    {

    }

    public String toString()
    {
        return "Please Implement";
    }

    /**
     * @return the messageId
     */
    public int getMessageId() {
        return messageId;
    }

    /**
     * @param messageId the messageId to set
     */
    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    /**
     * @return the sourceNodeId
     */
    public int getSourceNodeId() {
        return sourceNodeId;
    }

    /**
     * @param sourceNodeId the sourceNodeId to set
     */
    public void setSourceNodeId(int sourceNodeId) {
        this.sourceNodeId = sourceNodeId;
    }

    /**
     * @return the destinationNodeId
     */
    public int getDestinationNodeId() {
        return destinationNodeId;
    }

    /**
     * @param destinationNodeId the destinationNodeId to set
     */
    public void setDestinationNodeId(int destinationNodeId) {
        this.destinationNodeId = destinationNodeId;
    }

    /**
     * @return the timeToLive
     */
    public int getTimeToLive() {
        return timeToLive;
    }

    /**
     * @param timeToLive the timeToLive to set
     */
    public void setTimeToLive(int timeToLive) {
        this.timeToLive = timeToLive;
    }


}
